targetted_decisions = {
##############################################################################################################################
vassal_rape_decision = {
		filter = home_court
		ai_target_filter = home_court
		from_potential = {
			is_ruler = yes
			prisoner = no
			is_female = no
			OR = { age = 14 is_marriage_adult = yes }
			NOT = { trait = celibate }
			NOT = { trait = on_hajj }
			NOT = { trait = on_pilgrimage }
			NOT = { trait = incapable }
			NOT = { trait = eunuch }
		}
		potential = {
			prisoner = yes
			host = { character = FROM }
			is_female = yes
			age = 8
            NOT = { trait = pregnant }
			NOT = { has_character_modifier = rape_victim }
			NOT = { is_consort = FROM }
			has_dlc = "Legacy of Rome"
		}
		allow = {
			prisoner = yes
			host = { character = FROM }
			is_female = yes
			age = 8
            NOT = { trait = pregnant }
			NOT = { has_character_modifier = rape_victim }
			NOT = { is_consort = FROM }
		}
		effect = {
                        hidden_tooltip = {
				FROM = {character_event = { id = Rape.1 }}
			}
			custom_tooltip = { text = "EVTTOOLTIPRape.2_1"
				hidden_tooltip = { FROM = {
					character_event = { id = Rape.102 }
				} }
			}
			#character_event = { id = Rape.2 tooltip = "EVTTOOLTIPRape.2" }
                        add_trait = raped
			####
                        FROM = {
                        add_trait = rapist 
				
				if = { 
					limit = { religion_group = zoroastrian_group }
					piety = -10
					prestige = -20
				}
				if = { 
					limit = { religion_group = muslim }
					prestige = -10
				}
				if = { 
					limit = { religion_group = christian }
					piety = -15
					prestige = -30
				}
				if = {
					limit = { trait = just }
					random = {
						chance = 10
						remove_trait = just
					}
				}
				if = {
					limit = { trait = kind }
					random = {
						chance = 30
						remove_trait = kind
					}
				}
				if = {
					limit = { trait = chaste }
					random = {
						chance = 75
						remove_trait = chaste
						hidden_tooltip = {
							character_event = { id = 38303 }
						}
					}
				}
			
                                if = { limit = { ROOT = { AND = {age = 12  is_female = yes}}}
				if = {
					limit = { NOT = { trait = lustful } }
					random = {
						chance = 30
						add_trait = lustful
						hidden_tooltip = {
							character_event = { id = 38272 }
						}
					}
                                }
				}
                                if = {
                                        limit = {ROOT = { age = 16  is_female = no} NOT = { trait = homosexual }}
                                random = {
						chance = 5
						add_trait = homosexual
					}
                                }
                                if = {
					limit = {
						NOT = {
							OR = {
								religion_group = muslim
								religion_group = pagan_group
							}
						}
					}
					spouse = {
						opinion = {
							modifier = unfaithful
							who = FROM
							months = 12
						}
					}
				}

########################################################################
##############                        ##############
########################################################################
		       if = {
			        limit = { AND = {NOT = { trait = syphilitic } ROOT = { trait = syphilitic}}}
					random = {chance = 90
			character_event = { id = Rape.4 tooltip = "EVTTOOLTIPRape.4" }
                        add_trait = syphilitic}
		       }	
                       if = {
			        limit = { AND = {NOT = { trait = leper } ROOT = { trait = leper }}}
					random = {chance = 90
			character_event = { id = Rape.5 tooltip = "EVTTOOLTIPRape.5" }
                        add_trait = leper}
		       }
                       if = {
			        limit = { AND = {NOT = { trait = has_typhoid_fever } ROOT = { trait = has_typhoid_fever }}}
					random = {chance = 90
			character_event = { id = Rape.5 tooltip = "EVTTOOLTIPRape.3" }
                        trait = has_typhoid_fever}
		       }
                       if = {
			        limit = { AND = {NOT = { trait = has_typhus } ROOT = { trait = has_typhus }}}
					random = {chance = 90
			character_event = { id = Rape.5 tooltip = "EVTTOOLTIPRape.3" }
                        add_trait = has_typhus}
		       }
                       if = {
			        limit = { AND = {NOT = { trait = has_bubonic_plague } ROOT = { trait = has_bubonic_plague}}}
					random = {chance = 90
			character_event = { id = Rape.5 tooltip = "EVTTOOLTIPRape.3" }
                        add_trait = has_bubonic_plague}
		       }
                       if = {
			        limit = { AND = {NOT = { trait = has_measles } ROOT = { trait = has_measles }}}
					random = {chance = 90
			character_event = { id = Rape.5 tooltip = "EVTTOOLTIPRape.3" }
                        add_trait = has_measles}
		       }
                       if = {
			        limit = { AND = {NOT = { trait = has_small_pox } ROOT = { trait = has_small_pox }}}
					random = {chance = 90
			character_event = { id = Rape.5 tooltip = "EVTTOOLTIPRape.3" }
                        add_trait = has_small_pox}
		       }
    }                   
########################################################################
##############                          ##############
########################################################################	
		       if = {
			        limit = { AND = {FROM = { trait = syphilitic} ROOT = { NOT = {trait = syphilitic}}}}
					random = {chance = 95
			character_event = { id = Rape.4 tooltip = "EVTTOOLTIPRape.4" }
                        ROOT = {add_trait = syphilitic} }
		       }
		       if = {
			        limit = { AND = {FROM = { trait = leper} ROOT = { NOT = {trait = leper}}}}
					random = {chance = 95
			character_event = { id = Rape.4 tooltip = "EVTTOOLTIPRape.5" }
                        ROOT = {add_trait = leper} }
		       }
		       if = {
			        limit = { AND = {FROM = { trait = has_typhoid_fever} ROOT = { NOT = {trait = has_typhoid_fever }}}}
					random = {chance = 95
			character_event = { id = Rape.3 tooltip = "EVTTOOLTIPRape.3" }
                        ROOT = {add_trait = has_typhoid_fever} }
		       }
		       if = {
			        limit = { AND = {FROM = { trait = has_typhus} ROOT = { NOT = {trait = has_typhus}}}}
					random = {chance = 95
			character_event = { id = Rape.3 tooltip = "EVTTOOLTIPRape.3" }
                        ROOT = {add_trait = has_typhus} }
		       }
		       if = {
			        limit = { AND = {FROM = { trait = has_bubonic_plague} ROOT = { NOT = {trait = has_bubonic_plague}}}}
					random = {chance = 95
			character_event = { id = Rape.3 tooltip = "EVTTOOLTIPRape.3" }
                        ROOT = {add_trait = has_bubonic_plague} }
		       }   
		       if = {
			        limit = { AND = {FROM = { trait = has_measles} ROOT = { NOT = {trait = has_measles}}}}
					random = {chance = 95
			character_event = { id = Rape.3 tooltip = "EVTTOOLTIPRape.3" }
                        ROOT = {add_trait = has_measles} }
		       }  
                       if = {
			        limit = { AND = {FROM = { trait = has_small_pox} ROOT = { NOT = {trait = has_small_pox}}}}
					random = {chance = 95
			character_event = { id = Rape.3 tooltip = "EVTTOOLTIPRape.3" }
                        ROOT = {add_trait = has_small_pox} }
		       }                    	
########################################################################
########################################################################
########################################################################                       
                       hidden_tooltip = {
				if = {
					limit = { FROM = { NOT = { dynasty = ROOT } } }
					any_dynasty_member = {
						opinion = {
							modifier = opinion_raped_family
							who = FROM
						}
					}
				}
				
				FROM = {
					remove_opinion = { who = ROOT modifier = opinion_traitor }
					remove_opinion = { who = ROOT modifier = opinion_rebel_traitor }
					remove_opinion = { who = ROOT modifier = opinion_dishonorable }
				}
			}
                        ###################
                        opinion = {
				modifier = opinion_raped_me
				who = FROM
					}

##############################################################################################################################
##########################################              .               ##########################################
##############################################################################################################################
if = {limit = { AND = { age = 4 NOT = { age = 16 }}}
add_character_modifier = {name = rape_victim duration = 90}
                        if = {
				limit = { AND = { age = 12 NOT = { age = 16 }}
                                          }
                           
                                random = {
					chance = 3
					add_trait = incapable
				}
                                random = {
					chance = 10
					add_trait = depressed
				}
                                random = {
					chance = 10
					add_trait = paranoid
				}
                                random = {
					chance = 20
					add_trait = stressed
				}
                                 random = {
					chance = 20
					add_trait = ill
				}
			}
                        if = {
				limit = { AND = { age = 10 NOT = { age = 12 }
                                          }}
                                 random = {
					chance = 10
					character_event = { id = Sterillity.1 days = 1 }
				}
                                random = {
					chance = 5
					add_trait = incapable
				}
                                 random = {
					chance = 15
					add_trait = depressed
				}
                                random = {
					chance = 15
					add_trait = paranoid
				}
                                random = {
					chance = 25
					add_trait = stressed
				}
                                 random = {
					chance = 20
					add_trait = ill
				}
			}
                        if = {
				limit = { AND = { age = 8 NOT = { age = 10 }
                                          }}
                                       
                                  random = {
					chance = 20
					character_event = { id = Sterillity.1 days = 1 }
				}
                                random = {
					chance = 10
					add_trait = incapable
				}
                                random = {
					chance = 20
					add_trait = depressed
				}
                                random = {
					chance = 20
					add_trait = paranoid
				}
                                random = {
					chance = 30
					add_trait = stressed
				}
                                 random = {
					chance = 20
					add_trait = ill
				}
			}
                        if = {
				limit = { AND = { age = 6 NOT = { age = 8 }
                                          }}
                                 random = {
					chance = 30
					character_event = { id = Sterillity.1 days = 1 }
				}       
                                random = {
					chance = 15
					add_trait = incapable
				}
                                 random = {
					chance = 25
					add_trait = depressed
				}
                                random = {
					chance = 25
					add_trait = paranoid
				}
                                random = {
					chance = 35
					add_trait = stressed
				}
                                 random = {
					chance = 20
					add_trait = ill
				}
                        }
                        if = {
				limit = { AND = { age = 4 NOT = { age = 6 }
                                          }}
                                 random = {
					chance = 40
					character_event = { id = Sterillity.1 days = 1 }
				}      
                                random = {
					chance = 20
					add_trait = incapable
				}
                                 random = {
					chance = 25
					add_trait = depressed
				}
                                random = {
					chance = 25
					add_trait = paranoid
				}
                                random = {
					chance = 40
					add_trait = stressed
				}
                                 random = {
					chance = 20
					add_trait = ill
				}
			}
                 }
##################################################################################################################################################################################################################
##########################################   . ##############################################################################################################################
##################################################################################################################################################################################################################
if = { limit = { is_female = yes is_pregnant = no AND = { age = 12 NOT = { age = 16 } NOT = { trait = sterillity } } }
   
          if = { limit = { FROM = {AND = { age = 30  NOT = {age = 60}}}}
                if = {limit = { FROM ={ NOT = { fertility = 0.3 } }}
                       random_list = { 8 = {impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}
                                        FROM = { add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}}
                                      80 = {}
                                      12 = {character_event = { id = Sterillity.1 days = 1}}}} 
                if = {limit = { FROM ={ AND = { fertility = 0.3 NOT = { fertility = 0.5 }}}}
                      random_list = { 10 = {impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}
                                        FROM = { add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}}
                                      80 = {}
                                      10 = {character_event = { id = Sterillity.1 days = 1}}}}
                if = {limit = { FROM ={ AND = { fertility = 0.5 NOT = { fertility = 0.8 }}}}
                       random_list = { 15 = {impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}
                                        FROM = { add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}}
                                       70 = {}
                                       15 = {character_event = { id = Sterillity.1 days = 1}}}}
                if = {limit = { FROM ={ fertility = 0.8 }}
                       random_list = { 20 = {impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}
                                        FROM = { add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}}
                                       60 = {}
                                       20 = {character_event = { id = Sterillity.1 days = 1 }}}}}

           if = { limit = { FROM = {AND = { age = 60 NOT = {age = 200}}}}
                if = {limit = { FROM ={ NOT = { fertility = 0.3 } }}
                       random_list = { 3 = {impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}
                                        FROM = { add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}}
                                       84 = {}
                                       13 = { character_event = { id = Sterillity.1 days = 1 }}}}
                if = {limit = { FROM ={ AND = { fertility = 0.3 NOT = { fertility = 0.5 }}}}
                       random_list = { 7 = {impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}
                                        FROM = { add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}}
                                       76 = {}
                                       17 = {character_event = { id = Sterillity.1 days = 1 }}}}
                if = {limit = { FROM ={ AND = { fertility = 0.5 NOT = { fertility = 0.8 }}}}
                       random_list = { 10 = {impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}
                                        FROM = { add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}}
                                       64 = {}
                                       26 = { character_event = { id = Sterillity.1 days = 1}}}}
                if = {limit = { FROM ={ fertility = 0.8 }}
                       random_list = { 12 = {impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}
                                        FROM = { add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}}
                                       65 = {}
                                       23 = {character_event = { id = Sterillity.1 days = 1 }}}}}
}

                     

##################################################################################################################################################################################################################
##########################################   .##############################################################################################################################
##################################################################################################################################################################################################################
if = { limit = { is_female = yes is_pregnant = no age = 16 }
       add_character_modifier = {name = rape_victim duration = 15}}  
      if = { limit = {ROOT = {AND = {age = 16 is_female = yes NOT = {age = 60} NOT = {trait = sterillity }}}}

      random = {
					chance = 5
					character_event = { id = Sterillity.1 days = 1 }
				}
                if = {
                  limit = { FROM = {AND = { age = 16 NOT = {age = 30}}}}
                   if = { 
                      limit = { FROM ={ NOT = { fertility = 0.3 } }}
                        if = {
				limit = { NOT = { fertility = 0.3 } }
				random = {
					chance = 5
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
			if = {
				limit = { 
					AND = {
						fertility = 0.3
						NOT = { fertility = 0.5 }
					}
				}
				random = {
					chance = 7
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
			if = {
				limit = { 
					AND = {
						fertility = 0.5
						NOT = { fertility = 0.8 }
					}
				}
				random = {
					chance = 10
				       impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
			if = {
				limit = { fertility = 0.8 }
				random = {
					chance = 15
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
                     }
                   if = { 
                      limit = { FROM ={ AND = {
						fertility = 0.3
						NOT = { fertility = 0.5 }
					} }
                      }
                        if = {
				limit = { NOT = { fertility = 0.3 } }
				random = {
					chance = 10
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
			if = {
				limit = { 
					AND = {
						fertility = 0.3
						NOT = { fertility = 0.5 }
					}
				}
				random = {
					chance = 15
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
			if = {
				limit = { 
					AND = {
						fertility = 0.5
						NOT = { fertility = 0.8 }
					}
				}
				random = {
					chance = 20
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
			if = {
				limit = { fertility = 0.8 }
				random = {
					chance = 25
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
                     }
 if = { 
                      limit = { FROM ={ AND = {
						fertility = 0.5
						NOT = { fertility = 0.8 }
					} }
                      }
                        if = {
				limit = { NOT = { fertility = 0.3 } }
				random = {
					chance = 15
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
			if = {
				limit = { 
					AND = {
						fertility = 0.3
						NOT = { fertility = 0.5 }
					}
				}
				random = {
                                        chance = 20
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
			if = {
				limit = { 
					AND = {
						fertility = 0.5
						NOT = { fertility = 0.8 }
					}
				}
				random = {
					chance = 30
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
			if = {
				limit = { fertility = 0.8 }
				random = {
					chance = 40
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
                     }
 if = { 
                      limit = { FROM ={fertility = 0.8}
                      }
                        if = {
				limit = { NOT = { fertility = 0.3 } }
				random = {
					chance = 30
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
			if = {
				limit = { 
					AND = {
						fertility = 0.3
						NOT = { fertility = 0.5 }
					}
				}
				random = {
					chance = 40
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
			if = {
				limit = { 
					AND = {
						fertility = 0.5
						NOT = { fertility = 0.8 }
					}
				}
				random = {
					chance = 50
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
			if = {
				limit = { fertility = 0.8 }
				random = {
					chance = 60
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
                     }
                 }
if = {
                  limit = { FROM = {AND = { age = 30 NOT = {age = 60}}}}
                   if = { 
                      limit = { FROM ={ NOT = { fertility = 0.3 } }}
                        if = {
				limit = { NOT = { fertility = 0.3 } }
				random = {
					chance = 3
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
			if = {
				limit = { 
					AND = {
						fertility = 0.3
						NOT = { fertility = 0.5 }
					}
				}
				random = {
					chance = 5
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
			if = {
				limit = { 
					AND = {
						fertility = 0.5
						NOT = { fertility = 0.8 }
					}
				}
				random = {
					chance = 7
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
			if = {
				limit = { fertility = 0.8 }
				random = {
					chance = 10
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
                     }
                   if = { 
                      limit = { FROM ={ AND = {
						fertility = 0.3
						NOT = { fertility = 0.5 }
					} }
                      }
                        if = {
				limit = { NOT = { fertility = 0.3 } }
				random = {
					chance = 5
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
			if = {
				limit = { 
					AND = {
						fertility = 0.3
						NOT = { fertility = 0.5 }
					}
				}
				random = {
					chance = 10
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
			if = {
				limit = { 
					AND = {
						fertility = 0.5
						NOT = { fertility = 0.8 }
					}
				}
				random = {
					chance = 15
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
			if = {
				limit = { fertility = 0.8 }
				random = {
					chance = 20
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
                     }
 if = { 
                      limit = { FROM ={ AND = {
						fertility = 0.5
						NOT = { fertility = 0.8 }
					} }
                      }
                        if = {
				limit = { NOT = { fertility = 0.3 } }
				random = {
					chance = 13
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
			if = {
				limit = { 
					AND = {
						fertility = 0.3
						NOT = { fertility = 0.5 }
					}
				}
				random = {
					chance = 15
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
			if = {
				limit = { 
					AND = {
						fertility = 0.5
						NOT = { fertility = 0.8 }
					}
				}
				random = {
					chance = 20
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
			if = {
				limit = { fertility = 0.8 }
				random = {
					chance = 30
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
                     }
 if = { 
                      limit = { FROM ={fertility = 0.8}
                      }
                        if = {
				limit = { NOT = { fertility = 0.3 } }
				random = {
					chance = 20
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
			if = {
				limit = { 
					AND = {
						fertility = 0.3
						NOT = { fertility = 0.5 }
					}
				}
				random = {
					chance = 30
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
			if = {
				limit = { 
					AND = {
						fertility = 0.5
						NOT = { fertility = 0.8 }
					}
				}
				random = {
					chance = 35
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
			if = {
				limit = { fertility = 0.8 }
				random = {
					chance = 40
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
                     } 
                  }
if = {
                  limit = { FROM = {AND = { age = 60 NOT = {age = 200}}}}
                   if = { 
                      limit = { FROM ={ NOT = { fertility = 0.3 } }}
                        if = {
				limit = { NOT = { fertility = 0.3 } }
				random = {
					chance = 1
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
			if = {
				limit = { 
					AND = {
						fertility = 0.3
						NOT = { fertility = 0.5 }
					}
				}
				random = {
					chance = 3
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
			if = {
				limit = { 
					AND = {
						fertility = 0.5
						NOT = { fertility = 0.8 }
					}
				}
				random = {
					chance = 5
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
			if = {
				limit = { fertility = 0.8 }
				random = {
					chance = 7
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
                     }
                   if = { 
                      limit = { FROM ={ AND = {
						fertility = 0.3
						NOT = { fertility = 0.5 }
					} }
                      }
                        if = {
				limit = { NOT = { fertility = 0.3 } }
				random = {
					chance = 5
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
			if = {
				limit = { 
					AND = {
						fertility = 0.3
						NOT = { fertility = 0.5 }
					}
				}
				random = {
					chance = 7
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
			if = {
				limit = { 
					AND = {
						fertility = 0.5
						NOT = { fertility = 0.8 }
					}
				}
				random = {
					chance = 10
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
			if = {
				limit = { fertility = 0.8 }
				random = {
					chance = 12
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
                     }
 if = { 
                      limit = { FROM ={ AND = {
						fertility = 0.5
						NOT = { fertility = 0.8 }
					} }
                      }
                        if = {
				limit = { NOT = { fertility = 0.3 } }
				random = {
					chance = 12
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
			if = {
				limit = { 
					AND = {
						fertility = 0.3
						NOT = { fertility = 0.5 }
					}
				}
				random = {
					chance = 15
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
			if = {
				limit = { 
					AND = {
						fertility = 0.5
						NOT = { fertility = 0.8 }
					}
				}
				random = {
					chance = 17
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
			if = {
				limit = { fertility = 0.8 }
				random = {
					chance = 20
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
                     }
 if = { 
                      limit = { FROM ={fertility = 0.8}
                      }
                        if = {
				limit = { NOT = { fertility = 0.3 } }
				random = {
					chance = 20
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
			if = {
				limit = { 
					AND = {
						fertility = 0.3
						NOT = { fertility = 0.5 }
					}
				}
				random = {
					chance = 23
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
			if = {
				limit = { 
					AND = {
						fertility = 0.5
						NOT = { fertility = 0.8 }
					}
				}
				random = {
					chance = 25
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
			if = {
				limit = { fertility = 0.8 }
				random = {
					chance = 27
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
                     }
                 }
}#   16  60
if = { limit = { ROOT = { AND = {age = 60 is_female = yes fertility = 0.8 }}}
if = { limit = { FROM = {fertility = 0.8}}
random = {
					chance = 5
					impregnate = FROM if = { limit = { is_close_relative = FROM} 
                                        add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525} 
                                        FROM = {add_character_modifier = 
                                        {name = incestuous_adulterer duration = 42525}}}
				}
			}
}
##############################################################################################################################################################################################################################################################
                        if = {
				limit = { NOT = { has_character_modifier = rape_victim_dishonoured } }
				add_character_modifier = {
					name = rape_victim_dishonoured
					duration = 1900
				} }                    
              if = { limit = {age = 16}
			if = {
				limit = { NOT = { trait = depressed } }
				random = {
					chance = 5
					add_trait = depressed
				}
			}
			if = {
				limit = { NOT = { trait = paranoid } }
				random = {
					chance = 10
					add_trait = paranoid
				}
			}
                        if = {
				limit = { NOT = { trait = stressed } }
				random = {
					chance = 30
					add_trait = stressed
				}
			}
             
                        if = {
				limit = { NOT = { trait = ill } }
				random = {
					chance = 30
					add_trait = ill
					hidden_tooltip = {
						character_event = { id = 38290 }
					}
				}
			}
                     }
                        opinion = {
				modifier = opinion_hate
				opinion = -50
				months = 24
				who = FROM
			}
			any_dynasty_member = {
				opinion = {
					modifier = opinion_tyrant
					who = FROM
				}
			}
			spouse = {
				opinion = {
					modifier = cuckolded
					who = FROM
				}
				opinion = {
					modifier = opinion_hate
					who = FROM
				}
			}
		}
		ai_will_do = { factor = 1
			modifier = { factor = 0.1
				reverse_opinion = { who = FROM value = 40 }
			}
			modifier = { factor = 0.3 } # Less likely to do it
			modifier = { factor = 5	}
			modifier = { factor = 5
				is_pretender = yes
				FROM = {
					OR = {
						is_pretender = yes
						is_primary_heir = yes
					}
				}
			}
			modifier = { factor = 1.5
				FROM = { 
					OR = {
						trait = lustful
						trait = cruel
					}
				}
			}
			modifier = { factor = 1.5
				FROM = {
					OR = {
						trait = hedonist
						trait = impaler
					}
				}
			}
			modifier = { factor = 1.7
				FROM = {
					AND = {
						trait = lustful
						trait = impaler
					}
				}
			}
			modifier = { factor = 1.7
				FROM = {
					AND = {
						trait = cruel
						trait = lustful
					}
				}
			}
			modifier = { factor = 1.2
				FROM = {
					OR = {
						trait = bad_priest_christian
						trait = bad_priest_muslim
						trait = bad_priest_zoroastrian
					}
				}
			}
			modifier = { factor = 1.4
				FROM = { religion_group = pagan_group }
			}
			modifier = {
				factor = 1.7
				NOT = { age = 21 }
				FROM = { spouse = {
					OR = {
						age = 35
						trait = ugly
						trait = gluttonous
						trait = ill
						trait = hunchback
						trait = harelip
					}
				} }
			}
			modifier = { factor = 0.3
				FROM = {
					OR = {
						trait = chaste
						trait = kind
					}
				}
			}
			modifier = { factor = 0.3
				FROM = {
					OR = {
						trait = temperate
						trait = humble
						trait = shy
						trait = content
					}
				}
			}
		
			modifier = { factor = 2
				NOT = { age = 30 }
			}
			modifier = { factor = 0.9
				AND = {
					age = 30
					NOT = { age = 40 }
				}
			}
			modifier = { factor = 0.8
				age = 40
			}
			modifier = { factor = 2
				trait = fair
			}
			modifier = { factor = 0.5
				OR = {
					trait = ugly
					trait = gluttonous
					trait = ill
					trait = hunchback
					trait = harelip
				}
			}
			modifier = { factor = 10
				FROM = { religion = east_satanic }
			}
		}
	}
}